<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar"><span class="color_red">*</span>项目基本情况</div>
	<table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
	<col style="width: 20%"/>
	<col style="width: 15%"/>
	<col style="width: 20%"/>
	<col style="width: 18%"/>
	<col style="width: 27%"/>
	    <tr >
	        <td align="right">项目名称：</td>
	        <td colspan="4">
	        	<input type='text' name='proposal/zh_title' id='zh_title' style="width: 80%" class="input_css required maxlength:100" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称">
	        </td>
	    </tr>
	    <tr >
	        <td align="right">申报中心名称：</td>
	        <td colspan="4">
	        	<input type='text' name='proposal/zh_sbzx' id='zh_sbzx' style="width: 80%" class="input_css required maxlength:100" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_sbzx"/>' label="申报中心名称">
	        </td>
	    </tr>
	    <tr >
	        <td align="right">申报疾病领域/临床专科：</td>
	        <td colspan="4">
	        	<input type='text' name='proposal/zh_jbly' id='zh_jbly' style="width: 80%" class="input_css required maxlength:100" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_jbly"/>' label="申报疾病领域/临床专科">
	        </td>
	    </tr>
	     <tr >
	        <td align="right">依托单位：</td>
	        <td colspan="4">
	       		 <span name="organizations/organization/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/></span>
	        	<%-- <input type='text' name='proposal/zh_jbly' id='zh_jbly' style="width: 80%" class="input_css required maxlength:100" maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_jbly"/>' label="项目名称"> --%>
	        </td>
	    </tr>   
	    <tr>
				<td  align="right">单位地址：</td>
				<td colspan="4" width="530px"><span name="organizations/organization/address"><x:out
						select="$xmlData/data/organizations/organization/address"/></span></td>

			</tr>
	     <tr>
	    <td align="right">组织机构代码/统一社会信用代码：</td>
		<c:set var="org_shxy_no">
			<x:out
				select="$xmlData/data/organizations/organization[@submit_org='1']/org_shxy_no" />
		</c:set>
		<c:if test="${empty org_shxy_no }">
			<c:set var="org_shxy_no">
				<x:out
					select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" />
			</c:set>
		</c:if>
		<td colspan="2">
			<span name="organizations/organization/org_no">${org_shxy_no}</span>
		</td>
            <td align="right" ><span class="color_red">*</span>申报日期：</td>
            <td>
                <c:set var="submit_date">
                    <x:out select="$xmlData/data/proposal/submit_date" />
                </c:set>
                <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="申报日期" ></cpt:date>
            </td>
        </tr>
		</tr>	
		<tr>
				<td align="right">项目负责人：</td>
				<td colspan="2"><span name="zh_parsen/fzr_name"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span></td>
				<td align="right">电子邮箱：</td>
				<td><span name="zh_parsen/fzr_email"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span></td>
			</tr>
			
			<tr>
				<td align="right">手机号码：</td>
				<td colspan="2"><span  name="zh_parsen/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span></td>
				<td align="right">联系电话：</td>
				<td><span name="zh_parsen/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span></td>
			</tr>
		
	    <tr>
	    <td rowspan="4" align="right">拟建中心负责人相关信息：</td>
	    <td align="right">姓名：</td>
	    <td><input  type="text" label="拟建中心负责人相关信息-->姓名" name="proposal/fzr_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/fzr_name" />"></td>
	    <!-- <td align="right">性别:</td>
	    <td><input type="radio" label="负责人性别"></td> -->
	    	<td align="right">
				性别：
			</td>
		<%-- 	<td align="center">
						<span name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_name">
							<c:set var="gender_value"><x:out select="$zh_person/basic_info/gender_value" /></c:set>
							<c:if test="${gender_value eq 'M' }">男</c:if>
							<c:if test="${gender_value eq 'F' }">女</c:if>
                        </span>
					</td>  --%>
			<!-- <td>
				<input type="radio" id="gender_1" name="gender" label="负责人性别" value="男" class="do"/>男
				&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="radio" id="gender_2" name="gender" value="女" class="do" />女
				<input type="hidden" name="gender_value" label="负责人性别" class="required" />
			</td> -->
			<td colspan="3">
 			<c:set var="gender_value"><x:out select="$xmlData/data/proposal/gender_value" /></c:set> 
			<cpt:checkbox key="gender" name="proposal/gender" width="70px" repeatColumn="2" value="${gender_value }" tagType="radio"></cpt:checkbox>
			<input type="hidden" id="gender_value" name="proposal/gender_value" class="required" value="${gender_value}" label="拟建中心负责人相关信息-->性别"> 
			<input type="hidden" name="proposal/gender_name" value="<x:out select="$xmlData/data/proposal/gender_name" />">
		</td>
	    </tr>
	
	    <tr><td align="right">出生年月：</td>
	    <td>
	    	<c:set var="fzr_birthday"><x:out select="$xmlData/data/proposal/fzr_birthday"/></c:set>
        	<cpt:date id="fzr_birthday" name="proposal/fzr_birthday" label="拟建中心负责人相关信息-->出生年月" value="${fzr_birthday }" className=" required  date beforeToday"  ></cpt:date>
        </td>
        <td align="right">职称：</td>
		<td>
			<c:set var="json_contact_prof_title_value">
				{'id':'<x:out select="$xmlData/data/proposal/contact_prof_title_value" />',
				'name':'<x:out select="$xmlData/data/proposal/contact_prof_title_name" />'
				}					
			</c:set>

			<cpt:tree key="prof_title" cacheable="false" value="${json_contact_prof_title_value }"
				id="contact_prof_title" name="contact_prof_title" readonly="true"
			 	onClick="initTreeValueExt" />
			 	
			<input type="hidden" id="contact_prof_title_value"
				name="proposal/contact_prof_title_value"
				value="<x:out select="$xmlData/data/proposal/contact_prof_title_value" />" class="required" label="拟建中心负责人相关信息-->职称" />
			<input type="hidden" id="contact_prof_title_name"
				name="proposal/contact_prof_title_name"
				value="<x:out select="$xmlData/data/proposal/contact_prof_title_name"/>" />			
		</td>
        </tr>
	    <tr><td align="right">联系电话：</td>
	    <!-- onfocus="InitInput.setNumber(this,11,0,0)" --> 
	    <td >
	    	<input type="text" label="拟建中心负责人相关信息-->联系电话" name="proposal/fzr_mobile" class="input_css required"  value="<x:out select="$xmlData/data/proposal/fzr_mobile" />">
	    </td>
	    <td align="right">职务：</td>
	    <td>
			<input  type="text" label="拟建中心负责人相关信息-->职务" name="proposal/fzr_position" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/fzr_position" />">    	
	    </td>
	    </tr>
	    <tr>
	     <td align="right">电子邮箱：</td>
	    <td>
	    	<input type="text" label="拟建中心负责人相关信息-->电子邮箱" name="proposal/fzr_email" class="input_css required email" maxlength="50" value="<x:out select="$xmlData/data/proposal/fzr_email"/>">
	    </td> 
	    <td align="right">传真：</td>
	    <td>
	    	<input type="text" label="拟建中心负责人相关信息-->传真" name="proposal/fzr_fax" class="input_css required"  value="<x:out select="$xmlData/data/proposal/fzr_fax" />">
	    </td> 
	    </tr>
	</table>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
 }
</script>	